﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using BUS;

namespace DTO
{
    public class AutoConfigCode
    {
        public static string GetNextNumber(string code)
        {
            string[] arg = new string[] { "ConfigCode" };
            object[] obj = new object[] { code };
            DataTable dt = CatalogueBase.GetData("ConfigCode_GetNextAutoNumber", arg, obj).Tables[0];
            return dt.Rows[0]["NextNumber"].ToString();
        }
    }
}
